package com.gujiangbo.application.mapper;

import com.gujiangbo.application.info.OrderInfo;
import com.gujiangbo.application.info.SubAccount;
import com.gujiangbo.application.req.SelectOrderInVo;
import com.gujiangbo.application.req.UserInfoInVo;
import com.gujiangbo.application.rsp.SelectOrderOutVo;

import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author gujiangbo
 */
@Repository
public interface DataBaseMapper {

    OrderInfo selectOrder(Map<String,String> map);

    void saveOrderInfo(OrderInfo info);

    void updateSubAccount(SubAccount account);

    void insertSubAccount(SubAccount account);

    SubAccount selectSubAccount(Map<String,String> map);

    List<OrderInfo> selectOrderAccountId(Map<String,String> map);
    
    UserInfoInVo queryUserInfo(Map<String,String> map);

    void addUserInfo(UserInfoInVo userInfoInVo);
}
